<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>精灵图</title>
  </head>
  <style>
    p {
      display: flex;
      flex-direction: row;
      line-height: 43px;
    }

    p .shopping_icon {
      display: inline-block;
      width: 45px;
      height: 45px;
      background-image: url(./images/sprites.png);
      background-position: -1px -60px;
    }

    p .transport_icon {
      display: inline-block;
      width: 45px;
      height: 45px;
      background-image: url(./images/sprites.png);
      background-position: -93px -60px;
    }

    p .position_icon {
      display: inline-block;
      width: 45px;
      height: 45px;
      background-image: url(./images/sprites.png);
      background-position: -138px -60px;
    }
  </style>
  <body>
    <p>
      <span class="shopping_icon"></span>
      购物
    </p>
    <p>
      <span class="transport_icon"></span>
      运输
    </p>
    <p>
      <span class="position_icon"></span>
      定位
    </p>
    <p><span></span></p>
  </body>
</html>
